package com.sz.businessgroup.bmo.impl;

import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.sz.businessgroup.bmo.IBusinessGroupBMO;
import com.sz.businessgroup.dao.IBusinessGroupDAO;

public class BusinessGroupBMO implements IBusinessGroupBMO{
	
	protected final Log logger = LogFactory.getLog(getClass());

	public IBusinessGroupDAO getBusinessGroupDAO() {
		return BusinessGroupDAO;
	}

	public void setBusinessGroupDAO(IBusinessGroupDAO businessDAO) {
		this.BusinessGroupDAO = businessDAO;
	}

	protected IBusinessGroupDAO BusinessGroupDAO = null;
	
	@SuppressWarnings("unchecked")
	public List queryGroup(Map map) throws Exception {
		return BusinessGroupDAO.queryGroup(map);
	}
	
	@SuppressWarnings("unchecked")
	public long queryGroupCount(Map map) throws Exception {
		return BusinessGroupDAO.queryGroupCount(map);
	}
	
	@SuppressWarnings("unchecked")
	public List queryGroupPage(Map map) throws Exception {
		return BusinessGroupDAO.queryGroupPage(map);
	}
	
	@SuppressWarnings("unchecked")
	public long addBusinessGroup(Map map) throws Exception {
		return BusinessGroupDAO.addBusinessGroup(map);
	}

	@SuppressWarnings("unchecked")
	public long updateBusinessGroup(Map map) throws Exception {
		return BusinessGroupDAO.updateBusinessGroup(map);
	}

}
